<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title></title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<link rel="stylesheet" type="text/css" href="css/styles.css">
		<script type="text/javascript" src="js/jquery.js"></script>
		<script type="text/javascript" src="js/fileDownLoad.js"></script>
		<script type="text/javascript" src="js/articleDetails.js"></script>
		<script type="text/javascript" src="js/scoreDetails.js"></script>
	</head>

	<body>
		<fieldset>
			<legend>    
				需要审批的稿件列表    
			</legend>
			<table style="width: 600px; margin-top: 15px;">
				<tr>
					<th>
						中文名称
					</th>
					<th>
						英文名称
					</th>
					<th>
						用户姓名
					</th>
					<th>
						分类
					</th>
					<th>
						稿件下载
					</th>
					<th>
						详细信息
					</th>
					<th>
						评分
					</th>
					<th>
						状态
					</th>
				</tr>
				<c:choose>
					<c:when test="${empty articleList}">
						<tr>
							<td colspan="7">
								目前没有稿件
							</td>
						</tr>
					</c:when>
					<c:otherwise>
						<c:forEach items="${articleList}" var="articleInfo">
							<tr onmouseover="this.className='mouseOver'" onmouseout="this.className='mouseOut'">
								<td>${articleInfo.chinaName}</td>
								<td>${articleInfo.englishName}</td>
								<td>${articleInfo.userInfo.userName}</td>
								<td>${articleInfo.categoryInfo.name}</td>
							    <td><a href="javascript:void(0);" onclick="fileDownLoad('${articleInfo.filePath}')">下载</a></td>
								<td><a href="javascript:void(0)" onclick="showNewWindow('${articleInfo.AId}')">详细信息</a></td>
								<td><input type="text" name="score" id="${articleInfo.AId}" style="width:50px;height:20px" value="${articleInfo.score}" onclick="showNewWindow_score('${articleInfo.AId}')" onchange="postScore('${articleInfo.AId}')"/></td>
								<td><span id="state${articleInfo.AId}"></span></td>
							</tr>
						</c:forEach>
					</c:otherwise>
				</c:choose>
			</table>
			
			
	<form action="completeZJTaskAction.action" method="post">
		<input type="hidden" name="taskId" id="taskId" value="${taskId}" >
		<input type="hidden" name="executionId" id="executionId" value="${executionId}">
		<input type="submit" value="提交" style="height:20px;margin-left:50px">
	</form> 
		</fieldset>
	<form action="fileDownloadAction.action" method="post" name="fileDownLoadForm">
	<input type="hidden" name="filePath" id="filePath">
	</form>
	
	</body>
</html>
